package com.hl.toolkit.server.tycoin.user.slaveentity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.tycoin.common.entity.AbstractEntity;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

@Entity
@Table(name="tycoin_user_login_log")
@DynamicUpdate
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
 public class TycoinUserLoginLog extends AbstractEntity implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1668828568161954305L;
	
	@Column(name = "user_id")
 	private long userId;
	
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "user_id", insertable = false, updatable = false)
	private TycoinUser tycoinUser;
	
	@Column(name = "ip")
 	private String ip;
	
	@Column(name = "address")
	private String address;
	@Column(name = "client")
	private String client;


	public String getClient() {
		return client;
	}

	public void setClient(String client) {
		this.client = client;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public TycoinUser getTycoinUser() {
		return tycoinUser;
	}

	public void setTycoinUser(TycoinUser tycoinUser) {
		this.tycoinUser = tycoinUser;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	@Column(name = "loginTime")
	private String loginTime;

	
	
	

}
